<Window x:Class="StockholmsStad.Windows.UI.ExceptionWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="ExceptionWindow"
    Icon="/StockholmsStad.Windows.UI;component/Resources/Icons/vigpar32f.ico"
    Width="520" Height="200"
    WindowStartupLocation="CenterScreen"
    >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
            
        </Grid.RowDefinitions>

        <Grid Grid.Row="0">
            <ScrollViewer VerticalScrollBarVisibility="Auto">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>

                    <Image Grid.Column="0" Source="/Resources/Images/CustomDialogStop.png" Width="32" Height="32" VerticalAlignment="Top" Margin="10"/>
                    
                    <TextBlock Grid.Column="1" x:Name="messageTextBlock" Text="Ett fel har inträffat bla bla " TextWrapping="WrapWithOverflow" Margin="10" />
                    
                </Grid>
            </ScrollViewer>
        </Grid>

        <Grid Grid.Row="1" Background="#ececec">
            <Expander x:Name="expanderControl" Margin="5">
                <Expander.Header>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="380" />
                            <ColumnDefinition Width="80" />
                        </Grid.ColumnDefinitions>

                        <TextBlock Text="Visa/dölj detaljerad felinformation"
                            Grid.Column="0" />
                        
                        <Button x:Name="closeButton" Content=" OK " 
                            Grid.Column="1" />
                    </Grid>

                </Expander.Header>
                
                <TextBox x:Name="extendedMessageTextBox" Height="120" Margin="0, 5, 0 ,0"
                    TextWrapping="Wrap"
                    AcceptsReturn="True"
                    VerticalScrollBarVisibility="Auto"
                    Text=""
                    />
                    
            </Expander>
        </Grid>

        <!--<Grid Grid.Row="2" Background="#ececec" Height="40">
         
        </Grid>-->

    </Grid>
</Window>
